/****** Object:  Table [dbo].[service]    ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[service](
	[serviceCode] [nchar](10) NOT NULL,
	[servicecategoryCode] [nchar](10) NULL,
	[serviceDescription] [nchar](20) NULL,
	[price] [float] NULL,
 CONSTRAINT [PK_service] PRIMARY KEY CLUSTERED 
(
	[serviceCode] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[service]  WITH CHECK ADD  CONSTRAINT [FK_service_servicecategory] FOREIGN KEY([servicecategoryCode])
REFERENCES [dbo].[servicecategory] ([servicecategoryCode])
GO

ALTER TABLE [dbo].[service] CHECK CONSTRAINT [FK_service_servicecategory]
GO

